/*************************************************************************
 *
 *  Copyright (C) 2013 Florian Dang <florian.coin@gmail.com>
 *
 *  This file is part of NatusVerse.
 *
 *  NatusVerse is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  NatusVerse is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with NatusVerse.  If not, see <http://www.gnu.org/licenses/>.
 *
 *************************************************************************/

#ifndef INC_RAYTRACER_OBJECTS_RAY_H_
#define INC_RAYTRACER_OBJECTS_RAY_H_

/*!
 * \file        Ray.h
 * \brief       ray
 * \author      Florian Dang
 * \date        2013
 */
 
#include "raytracer/objects/point.h"
#include "graphics/color.h"

namespace raytracer
{
//! Ray class
/*!
  Shadow ray/light ray...
*/
class Ray
{
	public:
		typedef color::Color Color;

		//! constructors
		Ray() : start_(), direction_() {}
		Ray(Point start0, Vector dir0)
			: start_(start0), direction_(dir0) {}

		//! destructors
		~Ray() {}

		//! accessors
		inline Point  start() const { return start_; }
		inline Vector direction() const { return direction_; }

		inline void set_start(Point start0) { start_ = start0; }
		inline void set_direction(Vector dir0) { direction_ = dir0; }

		void Print() const;

	private:
		Point  start_;		/*!< source, origine of the ray */
		Vector direction_;  /*!< vector direction of the ray */
};
}


#endif  // INC_RAYTRACER_OBJECTS_RAY_H_
